GXGetShapeDashPositions
You can use theGXGetShapeDashPositions
function to determine the precise locations where QuickDraw GX draws a particular shape's dashes.
long GXGetShapeDashPositions(gxShape source, gxMapping dashMappings[]);
source
- A reference to the shape whose dash positions you want to find.
dashMappings
- An array of dash positions. On return, this array contains mappings that indicate the position of the dashes of the source shape.
- function result
- The number of dash positions returned in the
dashMappings
parameter.DESCRIPTION
TheGXGetShapeDashPositions
function returns in thedashMappings
parameter mappings that indicate the locations and rotations of the dashes as drawn along the contours of the source shape.The function result is the number of dash positions returned--the number of dash shapes drawn along the contours of the source shape.
If you pass
nil
for thedashMappings
parameter, theGXGetShapeDashPositions
function still returns as the function result the number of dashes but it does not return the positions of the dashes.This function returns 0 if the source shape is not dashed.
ERRORS, WARNINGS, AND NOTICES
Errors out_of_memory shape_is_nil Warnings graphic_type_cannot_be_dashed SEE ALSO
For a discussion of dashes, see "Dashes" on page 3-27.For an example of using this function, see "Determining Dash Positions" on page 3-81.
For a discussion of the
gxDashRecord
structure, see "The Dash Structure" on page 3-103.To retrieve dash information from a style object, use the
GXGetStyleDash
function, which is described on page 3-135. To specify dash information for a style object, use theGXSetStyleDash
function, which is described on page 3-136.To retrieve dash information from a style object associated with a particular shape, use the
GXGetShapeDash
function, which is described on page 3-138. To specify dash information for a style object associated with a particular shape, use theGXSetShapeDash
function, which is described on page 3-139.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help